package com.jp.knowledge.command.implement;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.jp.knowledge.activity.WebBrowserActivity;
import com.jp.knowledge.command.Command;
import com.jp.knowledge.command.CommandReceiver;

/**
 * Created by 528787067@qq.com on 2017/6/17.
 *
 * 打开网址
 */

public class DaKaiWangZhi extends Command {

	public DaKaiWangZhi(@NonNull CommandReceiver receivert) {
		super(receivert);
	}

	@Override
	public void execute() {
		Intent intent = createIntent(WebBrowserActivity.class);
		String url = recordId;
		if(url == null)
			return;
		intent.putExtra("loadingUrl", url);
		startActivity(intent);
	}
}
